003 how i do it (part 2)

嘿伙计们欢迎回来。
Hey guys welcome back.

让我们继续讨论这件事,我们会尽力在本次讲座中完成它。
Let's go ahead and keep going on this thing and we'll try to get it finished up in this lecture.

那么让我们开始看看我们需要做什么。
So let's start looking at what we need to do with that.

好吧,我将从重新调整这个按钮的用途开始。
Well I'm going to start by repurposing this button.

因此,它不会与 Chimay 合作,而是会进入大海,我们需要为此创建一些新标签。
So instead of working with the Chimay it's going to go into the sea and we're going to need to create some new tags for that.

第一个是 P.B.
And this first one is going to be P.B.

下划线 B.-W 下划线启用。
underscore B.-W underscore enable.

这将启用我们的反冲洗循环,我将继续复制它并将其设置为 B-3,然后让我们看看启用反冲洗的按钮是什么。
So that's going to enable our backwash cycle and I'll go ahead and copy that and set that to B-3 and then let's see what our button is to enable backwash.

这是我们的反洗 Nabl,即 B-3 6 1。
Here is our backwash Nabl and that's B-3 6 1.

所以我们将其设置为 3 0 0 6 0 1 0 OK。
So let's set that up be 3 0 0 6 0 1 0 OK.

当我们在这里时,我们还将继续设置我们的禁用功能。
We're also going to go ahead and set up our disable while we're in here.

因此只需将其更改为不禁用而是禁用。
So just change that to not disable but disable.

看起来不错。
That looks good.

而且它也将是 B-3。
And it's also going to be a B-3.

那是 B-3 6 0。
And that was B-3 6 0.

所以我们在这里的时候是 0 0 6 0 0。
So 0 0 6 0 0 while we're in here.

我还将创建另一个标签,该标签将成为 B.-W 反冲洗锁定指示器中的一只眼睛。
I'm also going to create one more tag which is going to be an eye in the indicator for B.-W backwash lockout.

因此,当我们的反冲洗循环被锁定时,这将被激活,即 B-3 5 15。
So this is going to energize when our backwash cycle is locked down and that is B-3 5 15.

所以 0 0 5 1 5 点击确定。
So 0 0 5 1 5 hit OK.

所以我认为这就是我们此时想要为反冲洗添加的所有内容。
So I think that's everything that we want to add for backwash at this time.

但现在我们要选择“Nabl OK”按钮,并确保这就是框中的内容,然后再次单击“确定”。
But right now we want to select the push button for a Nabl OK and make sure that that's what's in the box hit ok again.

让我们看看我们的标签,然后我们将更改它以启用。
And let's look at our label and then we're going to change this to enable.

好的。
OK.

现在我想我们已经有了一个可以使用的按钮。
And now I think we've got a push button that we can use.

玛丽,我要把它弄小一点。
Mary I am going to make it a little bit smaller.

然后让我们复制并粘贴该按钮并创建另一个按钮,我们将更改此人的标签以禁用,并将此按钮链接到我们的按钮以禁用英雄确定。
And then let's copy and paste that push button and create another one and we'll change the label on this guy to disable and we'll link this one to our push button for disable hero OK.

我们就这样吧。
And there we go.

现在我们实际上可以启用和禁用这个东西,然后我们需要显示它是否在任何时间点启用或禁用。
Now we can actually enable and disable this thing and then we need to show if it's enabled or disabled at any point in time.

所以我要复制我的一个指标出现。
So I'm going to copy one of my indicators appear.

我将把它放在这里,我们将把它链接到指示器反冲洗锁定,然后让我们继续看一下我们的标签。
I'll bring this down here and we're going to link this to indicator backwash lockout and then let's go ahead and take a look at our label.

如果我们处于零状态,则意味着我们没有被锁定。
If we are in state zero that means we are not locked out.

这意味着我们的反洗已启用,我们将进入此处并输入反洗已启用。
So that means that our backwash is enabled and we're going to come in here and type backwash enabled.

然后我将复制它并将其用于将要读取的状态一。
And then I will copy that and use that for state one which is going to be read.

只需将其粘贴进去,我就会将反冲洗锁定,然后我会发出感叹号,以确保有人明白锁定反冲洗是一件严重的事情。
And should just paste that in and I will put backwash locked out and I will put an exclamation to make sure that somebody understands that having your backwash locked down is a serious thing.

没关系。
That's OK.

为此,我们需要更大一点的显示屏。
And we're going to need a little bit bigger display for that.

所以我认为应该做到这一点,我可能需要稍微拉伸一下以适应该标签并能够将其居中。
So I think that should just about do it and I might need to just stretch this out a little bit to accommodate that label and be able to center it.

那么让我们来了解一下吧。
So let's get it about there.

将其滑动到右侧,我认为应该显示得很好。
Slide that to the right there I think that should display just fine.

我可以在这里添加的另一件事是我将把反冲洗挂起。
And one other thing that I can put in here is I'm going to put a backwash pending.

因此,让我们继续选择它并复制它,我将把它放在这里。
So let's go ahead and select this and copy it and I'm going to put that right here.

让我们双击它。
Let's double click on that.

而且我还没有创建反冲洗待处理指标。
And I didn't create my indicator for backwash pending yet.

让我们再回到标签库。
So let's go back in one more time tag library.

新的这将是 I 中的 d 下划线 B.W.
New this is going to be I in d underscore B.W.

下划线待定。
underscore pending.

那也将是 B-3。
And that's going to be a B-3 as well.

然后让我们检查一下待处理的反冲洗是什么。
And then let's check and see what our backwash pending is.

即 B-3 4 5 0 0 4 0 5。
That is B-3 4 5 0 0 4 0 5.

好的,它被选中了。
OK it's selected hit.

好吧,它仍然在框中,再次点击“确定”。
OK it's still in the box hit ok again.

然后我们在标签下设置一些状态。
And then let's set some states under the label.

所以 0 表示没有反洗挂起,然后让我继续复制反洗挂起,因为这是我要在状态一上使用的地方,首先让我更改该颜色,这样我将使它们都变成蓝色因为我们真的不需要绿色和红色之类的东西来处理像我们是否在等待反冲洗这样无害的东西。
So 0 is going to say no backwash pending and then let me go ahead and copy backwash pending because that's where I'm going to use on state one and first of all let me change that color so I'm going to make these both blue because we really don't need greens and reds and things like that for something as innocuous as whether or not we're waiting on a backwash.

所以我会把它放在那里,实际上也许我会把它改为黄色,这样至少会提醒智者发生变化。
So I'll put that in there and actually maybe I will change this one to yellow so that will at least alert a sophist changes.

否则可能很难被注意到。
Otherwise it might be hard to notice.

再说一遍,我们总是想考虑我们自己。
And again we always want to think about us.

现在,我们没有蓝色待处理的反洗,或者如果有反洗待处理,它会变成黄色并更改标签。
Now we've got no backwash pending in blue or if a backwash is pending it'll turn yellow and change the label.

我们需要做的另一件事是我们需要在这里创建一个手动反冲洗按钮。
The other thing we need to do is we need to create a manual backwash button here.

让我将这两个按钮滑过,然后我们将在此处再创建一个按钮。
Let me just take these two buttons and slide those over and then we're going to create one more button right here.

让我们双击它,我们需要为此设置一个标签。
Let's double click on that and we will need to set a tag for this.

所以又多了一个新标签。
So one more new tag.

这将是 P.B.
And this is going to be P.B.

强调手动反冲洗。
underscore manual backwash.

或者我就说手动 B.W.
Or I'll just say manual B.W.

那将是一架 B B-3。
and that's going to be a B B-3.

让我们进入程序看看手动按钮是什么。
And let's jump into our program and see what that manual push button is.

那是 B-3 5 14 所以 0 0 5 1 4 然后点击“确定”,我们将再次点击“确定”,确保这就是所选的点击。
And that is B-3 5 14 so 0 0 5 1 4 and hit OK we'll hit OK again make sure that that's what selected hit.

好的。
OK.

然后让我们处理这个标签,我们将使用两行标签手册。
And then let's work on this label and we will use a two line label manual.

反洗。
Backwash.

让我们继续在它们之间添加一个换行符,然后单击“确定”。
And let's go ahead and put a line break in between those and hit OK.

我将把这个按钮拉长一点,让它更大一点,更令人讨厌,只是为了填充我框架中的一些空间,我也会把它拉长一点。
And I'm going to stretch this button out and make it a little bit bigger and more obnoxious just to kind of fill up some space in my frame which I'm also going to stretch down a little bit.

因此,现在我可以在此处启用反洗、禁用反洗、触发手动反洗,我可以在此处看到反洗实际上正在运行,我可以查看它是否处于待处理状态。
So now I can enable backwash disable backwash trigger manual backwash up here I can see for backwash is actually running right here I can see if it's pending.

这会告诉我它是否已启用。
And this will tell me whether it's even enabled or not.

除此之外,我只有另一件事需要做。
And aside from that I only have one other thing that I need to do.

让我们将其向上移动一点并将该矩形拉长,因为我刚刚想起我们还有另一个警报级别,所以让我们复制并粘贴它并将其移到此处。
Let's move this up a little bit and stretch this rectangle out because I just remembered We've got one other alarm level so let's copy and paste that and move that right down here.

我们开始吧。
There we go.

这将是我们的压力。
And this is going to be for our pressure.

所以我们有一个很高的压力,让我们继续并点击“确定”并将其拉回一点。
So we've got a pressure high high Let's go ahead and hit OK on that and pull that back a little bit.

所以,只要把它和其他衣服搭配起来就可以了。
So just kind of keep that halfway dressed up with those other ones.

我们需要为其创建一个标签。
And this one we need to create a tag for.

因此,我们将进入新的设置标签库。
So we'll go into settings tag library new.

这将是埃斯佩的第一个设定点强调压力强调H.H..
And this is going to be Espey first set point underscore pressure underscore H.H..

这就是我们的高压。
So that's our high high pressure.

我确信我们为此使用了浮子。
I'm sure we're using a float for that.

让我们回到警报处,看看能否找到那个东西。
And let's go back into alarm's to see if we can track that thing down.

我认为它在顶部,那就是 F-8 5。
I think it's up here at the top and that is F-8 5.

所以我们可以继续输入 0 0 5 作为地址。
So we can go ahead and say 0 0 5 for the address.

好的。
Okay.

好的。
Okay.

确保这就是选择的内容,点击“确定”。
Make sure that that's what selected hit Okay.

然后让我们检查一下我们的数字格式。
And then let's check our numeric format.

这是小数点左边的 32 位浮点数。
This is a 32 bit float left of the decimal point.

我们只允许 2 位数字,并且我们将在这个高压上设置一个范围,假设它将在 5 之间,当然不超过 20,并且在小数点右边我们将允许一位小数。
We're only going to allow 2 digits and we're going to set a range on this high high pressure between let's say it's going to be somewhere between 5 and certainly no more than 20 and right of the decimal point we will allow one decimal.

我认为这应该很好。
And I think that should be good.

让我们继续并点击“确定”。
Let's go ahead and hit OK on that.

现在看屏幕,我确实需要清理一些东西,我将继续选择这个矩形,然后将其向上移动,这样它看起来就与这个一样了下面这里。
So now looking at the screen I do need to clean some things up a little bit and I'm going to go ahead and select this rectangle and I'm going to move that up and that way it kind of looks the same as this one down here.

这个距离屏幕一侧有点太远了。
And this one is a little bit too far off to the side of the screen.

因此,让我们继续尝试将其向后移动一些。
So let's go ahead and try to move that back some.

对于这样一个空屏幕来说,这些也有点遥远。
And these as well are kind of off pretty far out for such an empty screen.

因此,让我们将它们移入,在设置安全性之前我要做另一件事,我将在这里复制我的小笔记,然后将其带入。
So let's move those in and I'm going to do one other thing before I set my security I'm going to copy my little notes here and I'm going to bring that in.

这看起来像是一个不错的小填充物。
And that looks like a nice little filler down here.

因此,这将使用安全 Clasby 登录来启用,我们只会说修改进程和警报设置点很好,听起来有点罗嗦,这意味着它应该很好地填充一些空间。
So this will be log in with security Clasby to enable and we'll just say modification of process and larm setpoints good sounds a little bit wordy which means it should fill up some space nicely.

没关系。
That's OK.

好的。
Good.

我喜欢它看起来很好的样子。
I like the way that it looks that's just fine.

我稍微打扮了一下。
And I was dress it up a little bit.

现在我们需要对事物设置一些安全性,这样我们就知道我们需要安全等级 B。
Now we need to set some security on things so we know we need security class B.

让我们继续从我们的储罐排水安全开始,这将是 B 级对象,我们不会使其不可见,因为我们确实希望有人能够查看并了解这些设定点是什么。
Let's go ahead and start with our tank drain security and that's going to be object class B and we're not going to make this invisible because we do want somebody to be able to look in and see what these set points are.

我们只是不希望未经授权的人能够更改它们。
We just don't want an unauthorized person to be able to change them.

所以让我们继续吧。
So let's keep going.

B 级安全,绝对适用于我们的警报设定点,因为我们不希望任何人乱搞这些。
Security class B and definitely for our alarm set points because we don't want anybody monkeying around with those.

然后有些事情出了问题,而操作员却从未发现。
And then something gets out of whack and the operator never finds out about it.

因此,这样一来,操作员就成为唯一有权访问系统的人,并且会出现一些问题。
So this way the operator is the only one who has access to the system and something gets out of whack.

好吧,我们已经知道是谁的错了。
Well we already know whose fault that is.

都是运营商的错
It's the operators fault.

没有比这更复杂的事情了,我们不是负责启用或禁用反冲洗的安全操作员。
Didn't get much more complicated than that and we weren't the operator to have security in order to enable or disable the backwash.

但我们会说手动反冲洗不安全。
But we will say no security on manual backwash.

我们将继续允许任何人用它进行手动反冲洗。
We will go ahead and allow anybody to do a manual backwash with that.

我想我实际上已经完成了配置屏幕,我们将在下一堂课中重新进行测试。
I think I've actually got a configuration screen done and we will pop back in in the next lecture and give this thing a test.

因此,尝试一下它是否有效。
So take it for a spin see if it works.

我们当然希望进行一次简短而甜蜜的测试,而不是另一次带有大量调试的冗长测试。
We'll certainly be hoping for a short and sweet test and not another long one with a bunch of debugging.

但到目前为止我的表现还没有那么糟糕,所以你知道我还是充满希望的。
But I haven't been doing so bad so far so you know I'm hopeful anyway.

回头见。
See you then.

干杯
Cheers